class Class{
    static leader;
    constructor(number){
       this.number=number;
    }
    introduce(){
        return this.number;
    }
    getDisplayName(){
        return `Class ${this.number}`;
    }
    assignLeader(student){
        if(student.klass.number === this.number){
            this.leader = student;
        }
        else{
            this.leader = null;
            console.log("It is not one of us.");
        }
    }
    appendMember(student){
        student.klass = this;
    }
}
module.exports = Class;
